package com.mg.pluginwebservice.entity;

import java.io.Serializable;

public class ProductData implements Serializable {
    String id;
    String name;
    String userid;
    String longitude;
    String latitude;
    String content;

    public ProductData() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getLocaton() {
        return this.longitude + ":" + latitude;
    }

    public String toCSV(String date,String forecastDate) {
        String content = this.userid + "," + this.content + "," + date + "," + forecastDate;
        return content;
    }
}
